Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Fix CSV export escaping for non-string values #13560

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

joeycumines-scw
Copy link
Contributor

@joeycumines-scw joeycumines-scw commented Jun 20, 2024

Fixes #12945

The actual fix is to apply escaping to values other than just strings, by first converting the value to a string.

Before: https://codesandbox.io/p/sandbox/boring-wildflower-rwjz6x?file=%2Fsrc%2FDemo.tsx%3A4%2C53
After: https://codesandbox.io/p/sandbox/optimistic-rain-d8zhk8

@mui-bot
Copy link

mui-bot commented Jun 20, 2024

Deploy preview: https://deploy-preview-13560--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against d82632c

@michelengelen michelengelen added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Export labels Jun 20, 2024
Copy link
Member

@cherniavskii cherniavskii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cherniavskii cherniavskii merged commit 6a6c512 into mui:master Jun 20, 2024
17 checks passed
DungTiger pushed a commit to DungTiger/mui-x that referenced this pull request Jul 23, 2024
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Commas in exported files are not handled correctly if value is in array
4 participants